const skyDom = document.querySelector(".sky");
const skyStyle = getComputedStyle(skyDom);
const skyWidth = parseFloat(skyStyle.width);
const skyHeight = parseFloat(skyStyle.height);


class Sky extends dad {
    constructor(){
        super( skyWidth, skyHeight, 0,0 ,-50,0,skyDom);
    }

    onMove(){
        if(this.left<=-skyWidth / 2){
            this.left = 0;
        }
    }

}
